package com.powernode.work.dao;

import com.powernode.work.bean.ContactsBean;

import java.util.List;

public interface ContactsMapper {
    int deleteByPrimaryKey(String id);

    int insert(ContactsBean record);

    int insertSelective(ContactsBean record);

    ContactsBean selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ContactsBean record);

    int updateByPrimaryKey(ContactsBean record);

    /**
     * 根据客户查询联系人
     * @param customerId
     * @return
     */
    List<ContactsBean> selectByCoutomerId(String customerId);
}